var n = null;

module.exports = function() {
    var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : "", e = 1 < arguments.length && void 0 !== arguments[1] && arguments[1];
    return n = setTimeout(function() {
        n = null, wx.showLoading({
            title: t,
            mask: e
        });
    }, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : 200), function() {
        n && (clearTimeout(n), n = null), wx.hideLoading();
    };
};